<template>
  <div>
    <p>我是父组件</p>
    <Home :tit="str" @transfer="getdata"></Home>
  </div>
</template>
<script>
// 引入子组件
import Home from "@/views/Home.vue";
export default {
  name: "",
  props: [""],
  components: {
    Home,
  },
  setup() {
    const str = "祝愿2203班级全体高薪就业";

    const getdata = (val) => {
      console.log(val);
    };
    return {
      str,
      getdata,
    };
  },
};
</script>
<style scoped>
</style>